//
//  UIView+FrameAdjust.h
//  MoboReaderClub
//
//  Created by fuyongle on 16/2/5.
//  Copyright © 2016年 xzrs. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (LayoutAdjust)

typedef NS_ENUM(NSInteger , LeShadowPathType) {
    LeShadowPathTop    = 1,
    LeShadowPathBottom = 2,
    LeShadowPathLeft   = 3,
    LeShadowPathRight  = 4,
    LeShadowPathCommon = 5,
    LeShadowPathAround = 6,
    
};

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign, readonly) CGFloat midX;
@property (nonatomic, assign, readonly) CGFloat midY;
@property (nonatomic, assign, readonly) CGFloat maxX;
@property (nonatomic, assign, readonly) CGFloat maxY;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGFloat left;
@property (nonatomic, assign) CGFloat right;
@property (nonatomic, assign) CGFloat top;
@property (nonatomic, assign) CGFloat bottom;

- (void)setBorderColor:(UIColor *)color;
- (void)setBorderWidth:(CGFloat)width;

@property(nonatomic,assign) IBInspectable CGFloat cornerRadius;

- (void)addDashLineByColor:(UIColor *)color;

- (UIViewController *)viewController;

/**
 给UIView添加阴影
 @param shadowColor 阴影颜色
 @param shadowOpacity 阴影透明度 默认0
 @param shadowRadius 阴影半径 也就是阴影放射程度 默认3
 @param shadowPathType 阴影方向
 @param shadowPathWidth 阴影放射g宽度
 */
- (void)viewShadowPathWithColor:(UIColor *)shadowColor shadowOpacity:(CGFloat)shadowOpacity shadowRadius:(CGFloat)shadowRadius shadowPathType:(LeShadowPathType)shadowPathType shadowPathWidth:(CGFloat)shadowPathWidth;


@end



